package lowijs.XfireClient.packet;

public class AckImPacket extends Packet {
	private final byte[] p_ackim_1 = new byte[] {
			0x02, 0x00, 0x02, 0x03,
			0x73, 0x69, 0x64, // sid
			0x03
	};
	
	private final byte[] p_ackim_2 = new byte[] {
			0x07,
			0x70, 0x65, 0x65, 0x72, 0x6d, 0x73, 0x67, // peermsg
			0x05, 0x02, 0x07,
			0x6d, 0x73, 0x67, 0x74, 0x79, 0x70, 0x65, // msgtype
			0x02, 0x01, 0, 0, 0, 0x07,
			0x69, 0x6d, 0x69, 0x6e, 0x64, 0x65, 0x78, // imindex
			0x02
	};
	
	public AckImPacket(byte[] sid, int imindex) {
		putBytes(p_ackim_1);
		putBytes(sid);
		putBytes(p_ackim_2);
		putInt(imindex);
	}
}
